class Album < ActiveRecord::Base
  # -----------------------------------------------------------------
  # Associations
  # -----------------------------------------------------------------
  # un album contient plusieurs images
  has_and_belongs_to_many :picture, :join_table => 'associations'
  # un album concerne un pays
  belongs_to :country
  # -----------------------------------------------------------------
  # Contraintes
  # -----------------------------------------------------------------
  # Il doit toujours y avoir un titre
  validates_presence_of :title
  
end
